
. set more off

. 
. //Machine 
. //Chip: Apple M2
. //Memory: 16 GB
. //MacOS: Sonoma 14.3.1 (23D60)
. 
. //STATA version 18.5
. version
version 18.5

. 
. //required packages
. ssc install require // (used version version 1.3.1 19sep2023)
checking require consistency and verifying not already installed...
all files already exist and are up to date.

. require require

. sreturn list 

macros:
       s(version_date) : "19sep2023"
            s(version) : "1.3.1"
      s(version_major) : "1"
      s(version_minor) : "3"
      s(version_patch) : "1"
           s(raw_line) : "*! version 1.3.1 19sep2023"
            s(full_fn) : "/Users/sebastian.thieme/Library/Application Support/.."
           s(filename) : "require.ado"
            s(package) : "require"

. ssc install xlincom // (used version 1.2.7  25sep2023)
checking xlincom consistency and verifying not already installed...
all files already exist and are up to date.

. require xlincom

. sreturn list 

macros:
       s(version_date) : "25sep2023"
            s(version) : "1.2.7"
      s(version_major) : "1"
      s(version_minor) : "2"
      s(version_patch) : "7"
           s(raw_line) : "*! 1.2.7                25sep2023"
            s(full_fn) : "/Users/sebastian.thieme/Library/Application Support/.."
           s(filename) : "xlincom.ado"
            s(package) : "xlincom"

. ssc install ftools //  (used version 2.49.1 08aug2023)
checking ftools consistency and verifying not already installed...
all files already exist and are up to date.

. require ftools

. sreturn list 

macros:
       s(version_date) : "08aug2023"
            s(version) : "2.49.1"
      s(version_major) : "2"
      s(version_minor) : "49"
      s(version_patch) : "1"
           s(raw_line) : "*! version 2.49.1 08aug2023"
            s(full_fn) : "/Users/sebastian.thieme/Library/Application Support/.."
           s(filename) : "ftools.ado"
            s(package) : "ftools"

. ssc install reghdfe // (used version 6.12.3 08aug2023)
checking reghdfe consistency and verifying not already installed...
all files already exist and are up to date.

. require reghdfe

. sreturn list 

macros:
       s(version_date) : "08aug2023"
            s(version) : "6.12.3"
      s(version_major) : "6"
      s(version_minor) : "12"
      s(version_patch) : "3"
           s(raw_line) : "*! version 6.12.3 08aug2023"
            s(full_fn) : "/Users/sebastian.thieme/Library/Application Support/.."
           s(filename) : "reghdfe.ado"
            s(package) : "reghdfe"

. ssc install coefplot // (used version 1.8.6  22feb2023)
checking coefplot consistency and verifying not already installed...
all files already exist and are up to date.

. require coefplot

. sreturn list 

macros:
       s(version_date) : "22feb2023"
            s(version) : "1.8.6"
      s(version_major) : "1"
      s(version_minor) : "8"
      s(version_patch) : "6"
           s(raw_line) : "*! version 1.8.6  22feb2023  Ben Jann"
            s(full_fn) : "/Users/sebastian.thieme/Library/Application Support/.."
           s(filename) : "coefplot.ado"
            s(package) : "coefplot"

. ssc install estout // /(used version 3.31  26apr2022)
checking estout consistency and verifying not already installed...
all files already exist and are up to date.

. require estout

. sreturn list 

macros:
       s(version_date) : "26apr2022"
            s(version) : "3.31.0"
      s(version_major) : "3"
      s(version_minor) : "31"
      s(version_patch) : "0"
           s(raw_line) : "*! version 3.31  26apr2022  Ben Jann"
            s(full_fn) : "/Users/sebastian.thieme/Library/Application Support/.."
           s(filename) : "estout.ado"
            s(package) : "estout"

. 
. import delimited "$cdpath/Data/analysis_data3.csv", clear 
(encoding automatically selected: ISO-8859-2)
(16 vars, 46,924 obs)

. 
. ///variable reformatting for analysis
> destring quatill_ge_date  pfr, replace force 
quatill_ge_date: contains nonnumeric characters; replaced as byte
(70 missing values generated)
pfr: contains nonnumeric characters; replaced as double
(7 missing values generated)

. label variable quatill_ge_date "Quarters Until General Election"

. egen quatill_ge_date_f2=group(quatill_ge_date) if quatill_ge_date>=0
(1,495 missing values generated)

. 
. egen candidate2office2yearstate_g=group(candidate2office2yearstate)

. 
. gen cincumbencystatus2=cincumbencystatus
(29 missing values generated)

. replace cincumbencystatus2 ="Incumbent" if  cincumbencystatus=="Incumbent"
(0 real changes made)

. replace cincumbencystatus2 ="Non-Incumbent" if  cincumbencystatus=="Challenger" 
> |cincumbencystatus=="Open"
variable cincumbencystatus2 was str10 now str13
(25,966 real changes made)

. egen cincumbencystatus_f2=group(cincumbencystatus2)
(29 missing values generated)

. 
. gen pfr100=pfr*100
(7 missing values generated)

. 
. xtset candidate2office2yearstate_g

Panel variable: candidate2office2yearstate_g (unbalanced)

. 
. ///Results
> //Figure 2a
. reghdfe pfr100  i.quatill_ge_date_f2   if quatill_ge_date>=0 &quatill_ge_date<=7
>  ,absorb(candidate2office2yearstate_g) cluster(office2yearstate )
(dropped 1208 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     41,965
Absorbing 1 HDFE group                            F(   7,   4649) =     129.54
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5618
                                                  Adj R-squared   =     0.4252
                                                  Within R-sq.    =     0.0321
Number of clusters (office2yearstate) =      4,650Root MSE        =    28.2836

                      (Std. err. adjusted for 4,650 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_da~2 |
             2  |   7.459445   .4106374    18.17   0.000     6.654401    8.264489
             3  |   7.276748   .4258271    17.09   0.000     6.441925    8.111571
             4  |   2.730026   .4491757     6.08   0.000     1.849428    3.610623
             5  |   12.87203    .626655    20.54   0.000     11.64349    14.10057
             6  |    13.4562   .7672939    17.54   0.000     11.95194    14.96046
             7  |    18.0859   .8806067    20.54   0.000      16.3595    19.81231
             8  |   7.944383    1.05885     7.50   0.000     5.868534    10.02023
                |
          _cons |   20.70453   .2908607    71.18   0.000      20.1343    21.27475
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      9967        9967           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

. 
. xlincom  (r1=2.quatill_ge_date_f2 ) (r2=3.quatill_ge_date_f2 ) (r3=4.quatill_ge_
> date_f2 ) (r4=5.quatill_ge_date_f2 ) (r5=6.quatill_ge_date_f2 ) (r6=7.quatill_ge
> _date_f2 ) (r7=8.quatill_ge_date_f2 )  ,post

          r1:  2.quatill_ge_date_f2 = 0
          r2:  3.quatill_ge_date_f2 = 0
          r3:  4.quatill_ge_date_f2 = 0
          r4:  5.quatill_ge_date_f2 = 0
          r5:  6.quatill_ge_date_f2 = 0
          r6:  7.quatill_ge_date_f2 = 0
          r7:  8.quatill_ge_date_f2 = 0

------------------------------------------------------------------------------
      pfr100 | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
          r1 |   7.459445   .4106374    18.17   0.000     6.654401    8.264489
          r2 |   7.276748   .4258271    17.09   0.000     6.441925    8.111571
          r3 |   2.730026   .4491757     6.08   0.000     1.849428    3.610623
          r4 |   12.87203    .626655    20.54   0.000     11.64349    14.10057
          r5 |    13.4562   .7672939    17.54   0.000     11.95194    14.96046
          r6 |    18.0859   .8806067    20.54   0.000      16.3595    19.81231
          r7 |   7.944383    1.05885     7.50   0.000     5.868534    10.02023
------------------------------------------------------------------------------

. coefplot  ,  levels( 90 ) yline(0, lcolor(black) ) msymbol(D) mcolor(white ) mlc
> olor(black)  msize(large)  ciopts(lwidth(*3) lcolor(gray)) xsc(reverse) vertical
>  xline(0, lcolor(black) lpattern(dot)) ylabel(,labsize(large)) xtitle("Quarters 
> Prior to General Election Quarter",size(large)) ytitle("Estimated Quarterly Effe
> cts on" "Event-Fundraising Proportions" ,size(large))  ylabel(0 "0%" 5 "5%" 10 "
> 10%" 15 "15%" 20 "20%")  xlabel( 0 "0" 1 "1" 2 "2" 3 "3" 4 "4" 5 "5" 6 "6" 7 "7"
>  ,labsize(large)) 

. 
. graph export "$cdpath/Figures/Figure2a.pdf", replace
file /Users/sebastian.thieme/Downloads/JOPReplication/Figures/Figure2a.pdf saved
    as PDF format

. graph export "$cdpath/Figures/Figure2a.eps", replace
file /Users/sebastian.thieme/Downloads/JOPReplication/Figures/Figure2a.eps saved
    as EPS format

. 
. //Figure 2b
. reghdfe pfr100  i.quatill_ge_date_f2   if quatill_ge_date>=0 &quatill_ge_date<=7
>  &cincumbencystatus2=="Incumbent"  ,absorb(candidate2office2yearstate_g) cluster
> (office2yearstate )
(dropped 276 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     18,102
Absorbing 1 HDFE group                            F(   7,   3235) =     102.91
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5328
                                                  Adj R-squared   =     0.4191
                                                  Within R-sq.    =     0.0528
Number of clusters (office2yearstate) =      3,236Root MSE        =    31.4184

                      (Std. err. adjusted for 3,236 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_da~2 |
             2  |   9.450426   .7126819    13.26   0.000     8.053072    10.84778
             3  |   9.027156   .7396724    12.20   0.000     7.576882    10.47743
             4  |     3.9193   .7788959     5.03   0.000     2.392121    5.446479
             5  |   16.95217   .9010875    18.81   0.000     15.18541    18.71893
             6  |   19.20861   1.055904    18.19   0.000      17.1383    21.27892
             7  |   23.04616   1.110365    20.76   0.000     20.86907    25.22325
             8  |   11.06399    1.32398     8.36   0.000     8.468068    13.65992
                |
          _cons |   24.74002   .4779029    51.77   0.000     23.80299    25.67704
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      3537        3537           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

. 
. eststo incni: xlincom  (r1=2.quatill_ge_date_f2)  (r2=3.quatill_ge_date_f2) (r3=
> 4.quatill_ge_date_f2 ) (r4=5.quatill_ge_date_f2) (r5=6.quatill_ge_date_f2 ) (r6=
> 7.quatill_ge_date_f2) (r7=8.quatill_ge_date_f2 ),post

          r1:  2.quatill_ge_date_f2 = 0
          r2:  3.quatill_ge_date_f2 = 0
          r3:  4.quatill_ge_date_f2 = 0
          r4:  5.quatill_ge_date_f2 = 0
          r5:  6.quatill_ge_date_f2 = 0
          r6:  7.quatill_ge_date_f2 = 0
          r7:  8.quatill_ge_date_f2 = 0

------------------------------------------------------------------------------
      pfr100 | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
          r1 |   9.450426   .7126819    13.26   0.000     8.053072    10.84778
          r2 |   9.027156   .7396724    12.20   0.000     7.576882    10.47743
          r3 |     3.9193   .7788959     5.03   0.000     2.392121    5.446479
          r4 |   16.95217   .9010875    18.81   0.000     15.18541    18.71893
          r5 |   19.20861   1.055904    18.19   0.000      17.1383    21.27892
          r6 |   23.04616   1.110365    20.76   0.000     20.86907    25.22325
          r7 |   11.06399    1.32398     8.36   0.000     8.468068    13.65992
------------------------------------------------------------------------------

. 
. reghdfe pfr100  i.quatill_ge_date_f2   if quatill_ge_date>=0 &quatill_ge_date<=7
>  &cincumbencystatus2=="Non-Incumbent"  ,absorb(candidate2office2yearstate_g) clu
> ster(office2yearstate )
(dropped 932 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     23,831
Absorbing 1 HDFE group                            F(   7,   3378) =      40.06
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5730
                                                  Adj R-squared   =     0.4151
                                                  Within R-sq.    =     0.0153
Number of clusters (office2yearstate) =      3,379Root MSE        =    25.2208

                      (Std. err. adjusted for 3,379 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_da~2 |
             2  |   5.888702   .4927125    11.95   0.000     4.922657    6.854747
             3  |   5.705984   .5019432    11.37   0.000     4.721841    6.690127
             4  |   1.374277    .537865     2.56   0.011     .3197029    2.428851
             5  |    8.23372   .8501365     9.69   0.000     6.566886    9.900555
             6  |   5.404942   1.116916     4.84   0.000     3.215042    7.594842
             7  |   9.511792   1.493423     6.37   0.000     6.583688     12.4399
             8  |   3.291445   1.797739     1.83   0.067    -.2333218    6.816211
                |
          _cons |   17.84009   .3494784    51.05   0.000     17.15488     18.5253
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      6424        6424           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

. 
. eststo nincni: xlincom  (r1=2.quatill_ge_date_f2)  (r2=3.quatill_ge_date_f2) (r3
> =4.quatill_ge_date_f2 ) (r4=5.quatill_ge_date_f2) (r5=6.quatill_ge_date_f2 ) (r6
> =7.quatill_ge_date_f2) (r7=8.quatill_ge_date_f2 ),post

          r1:  2.quatill_ge_date_f2 = 0
          r2:  3.quatill_ge_date_f2 = 0
          r3:  4.quatill_ge_date_f2 = 0
          r4:  5.quatill_ge_date_f2 = 0
          r5:  6.quatill_ge_date_f2 = 0
          r6:  7.quatill_ge_date_f2 = 0
          r7:  8.quatill_ge_date_f2 = 0

------------------------------------------------------------------------------
      pfr100 | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
          r1 |   5.888702   .4927125    11.95   0.000     4.922657    6.854747
          r2 |   5.705984   .5019432    11.37   0.000     4.721841    6.690127
          r3 |   1.374277    .537865     2.56   0.011     .3197029    2.428851
          r4 |    8.23372   .8501365     9.69   0.000     6.566886    9.900555
          r5 |   5.404942   1.116916     4.84   0.000     3.215042    7.594842
          r6 |   9.511792   1.493423     6.37   0.000     6.583688     12.4399
          r7 |   3.291445   1.797739     1.83   0.067    -.2333218    6.816211
------------------------------------------------------------------------------

. 
. coefplot (incni, msize(large) label("Incumbents") msymbol(O) mcolor(white ) mlco
> lor(black) ciopts(lwidth(*3) lcolor(gray)) offset(0.09) levels( 90 )) (nincni, l
> evels( 90 ) label("Non-Incumbents") msymbol(T) msize(large)  mcolor(white) mlcol
> or(black)  ciopts(lwidth(*3) lcolor(gray)) offset(-0.09)) , legend(position(0) b
> placement(neast)) yscale(r(0 30)) yline(0, lcolor(black)) ylabel(,labsize(large)
> ) xsc(reverse) vertical xline(0, lcolor(black) lpattern(dot))  xtitle("Quarters 
> Prior to General Election Quarter",size(large)) ytitle("Estimated Quarterly Effe
> cts on" "Event-Fundraising Proportions" ,size(large)) ylabel(0 "0%" 5 "5%" 10 "1
> 0%" 15 "15%" 20 "20%" 25 "25%") xlabel(0 "0" 1 "1" 2 "2" 3 "3" 4 "4" 5 "5" 6 "6"
>  7 "7" ,labsize(large)  ) 

. 
. graph export "$cdpath/Figures/Figure2b.pdf", replace
file /Users/sebastian.thieme/Downloads/JOPReplication/Figures/Figure2b.pdf saved
    as PDF format

. graph export "$cdpath/Figures/Figure2b.eps", replace
file /Users/sebastian.thieme/Downloads/JOPReplication/Figures/Figure2b.eps saved
    as EPS format

. 
. est clear

. 
. /// Table A10
> eststo: reghdfe pfr100  i.quatill_ge_date_f2   if quatill_ge_date>=0 &quatill_ge
> _date<=7 ,absorb(candidate2office2yearstate_g) cluster(office2yearstate ) 
(dropped 1208 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     41,965
Absorbing 1 HDFE group                            F(   7,   4649) =     129.54
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5618
                                                  Adj R-squared   =     0.4252
                                                  Within R-sq.    =     0.0321
Number of clusters (office2yearstate) =      4,650Root MSE        =    28.2836

                      (Std. err. adjusted for 4,650 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_da~2 |
             2  |   7.459445   .4106374    18.17   0.000     6.654401    8.264489
             3  |   7.276748   .4258271    17.09   0.000     6.441925    8.111571
             4  |   2.730026   .4491757     6.08   0.000     1.849428    3.610623
             5  |   12.87203    .626655    20.54   0.000     11.64349    14.10057
             6  |    13.4562   .7672939    17.54   0.000     11.95194    14.96046
             7  |    18.0859   .8806067    20.54   0.000      16.3595    19.81231
             8  |   7.944383    1.05885     7.50   0.000     5.868534    10.02023
                |
          _cons |   20.70453   .2908607    71.18   0.000      20.1343    21.27475
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      9967        9967           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation
(est1 stored)

. 
. eststo: reghdfe pfr100  i.quatill_ge_date_f2   if quatill_ge_date>=0 &quatill_ge
> _date<=7 &cincumbencystatus2=="Incumbent"  ,absorb(candidate2office2yearstate_g)
>  cluster(office2yearstate ) 
(dropped 276 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     18,102
Absorbing 1 HDFE group                            F(   7,   3235) =     102.91
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5328
                                                  Adj R-squared   =     0.4191
                                                  Within R-sq.    =     0.0528
Number of clusters (office2yearstate) =      3,236Root MSE        =    31.4184

                      (Std. err. adjusted for 3,236 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_da~2 |
             2  |   9.450426   .7126819    13.26   0.000     8.053072    10.84778
             3  |   9.027156   .7396724    12.20   0.000     7.576882    10.47743
             4  |     3.9193   .7788959     5.03   0.000     2.392121    5.446479
             5  |   16.95217   .9010875    18.81   0.000     15.18541    18.71893
             6  |   19.20861   1.055904    18.19   0.000      17.1383    21.27892
             7  |   23.04616   1.110365    20.76   0.000     20.86907    25.22325
             8  |   11.06399    1.32398     8.36   0.000     8.468068    13.65992
                |
          _cons |   24.74002   .4779029    51.77   0.000     23.80299    25.67704
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      3537        3537           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation
(est2 stored)

. 
. eststo: reghdfe pfr100  i.quatill_ge_date_f2   if quatill_ge_date>=0 &quatill_ge
> _date<=7 &cincumbencystatus2=="Non-Incumbent"  ,absorb(candidate2office2yearstat
> e_g) cluster(office2yearstate ) 
(dropped 932 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     23,831
Absorbing 1 HDFE group                            F(   7,   3378) =      40.06
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5730
                                                  Adj R-squared   =     0.4151
                                                  Within R-sq.    =     0.0153
Number of clusters (office2yearstate) =      3,379Root MSE        =    25.2208

                      (Std. err. adjusted for 3,379 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_da~2 |
             2  |   5.888702   .4927125    11.95   0.000     4.922657    6.854747
             3  |   5.705984   .5019432    11.37   0.000     4.721841    6.690127
             4  |   1.374277    .537865     2.56   0.011     .3197029    2.428851
             5  |    8.23372   .8501365     9.69   0.000     6.566886    9.900555
             6  |   5.404942   1.116916     4.84   0.000     3.215042    7.594842
             7  |   9.511792   1.493423     6.37   0.000     6.583688     12.4399
             8  |   3.291445   1.797739     1.83   0.067    -.2333218    6.816211
                |
          _cons |   17.84009   .3494784    51.05   0.000     17.15488     18.5253
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      6424        6424           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation
(est3 stored)

. 
. esttab using "$cdpath/Figures/TableA10.tex", title("Estimated Quarterly Effects 
> on" "Event-Fundraising Proportions")  mtitles("All Candidates" "Incumbent Candid
> ates" "Non-Incumbent Candidates")  se(%7.2f) label  nogap  compress star(* 0.10 
> ** 0.05 *** 0.01) replace unstack b(2)
(output written to /Users/sebastian.thieme/Downloads/JOPReplication/Figures/TableA
> 10.tex)

.  
. est clear 

. 
. /// Table A11
> eststo: reghdfe pfr100  quatill_ge_date  if quatill_ge_date>=0 &quatill_ge_date<
> =7 ,absorb(candidate2office2yearstate_g) cluster(office2yearstate )
(dropped 1208 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     41,965
Absorbing 1 HDFE group                            F(   1,   4649) =     316.48
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5536
                                                  Adj R-squared   =     0.4146
                                                  Within R-sq.    =     0.0140
Number of clusters (office2yearstate) =      4,650Root MSE        =    28.5441

                      (Std. err. adjusted for 4,650 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_date |    1.79196   .1007294    17.79   0.000     1.594483    1.989437
          _cons |   23.14263   .2442444    94.75   0.000     22.66379    23.62146
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      9967        9967           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation
(est1 stored)

. eststo: reghdfe pfr100  quatill_ge_date   if quatill_ge_date>=0 &quatill_ge_date
> <=7 &cincumbencystatus2=="Incumbent"  ,absorb(candidate2office2yearstate_g) clus
> ter(office2yearstate )
(dropped 276 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     18,102
Absorbing 1 HDFE group                            F(   1,   3235) =     331.29
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5211
                                                  Adj R-squared   =     0.4047
                                                  Within R-sq.    =     0.0289
Number of clusters (office2yearstate) =      3,236Root MSE        =    31.8049

                      (Std. err. adjusted for 3,236 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_date |   2.521761   .1385482    18.20   0.000      2.25011    2.793412
          _cons |   27.64277   .3890938    71.04   0.000     26.87987    28.40566
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      3537        3537           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation
(est2 stored)

. eststo: reghdfe pfr100  quatill_ge_date   if quatill_ge_date>=0 &quatill_ge_date
> <=7 &cincumbencystatus2=="Non-Incumbent"  ,absorb(candidate2office2yearstate_g) 
> cluster(office2yearstate )
(dropped 932 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     23,831
Absorbing 1 HDFE group                            F(   1,   3378) =      24.82
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5672
                                                  Adj R-squared   =     0.4075
                                                  Within R-sq.    =     0.0020
Number of clusters (office2yearstate) =      3,379Root MSE        =    25.3860

                      (Std. err. adjusted for 3,379 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_date |   .7032291   .1411572     4.98   0.000     .4264669    .9799914
          _cons |   20.47395   .3011326    67.99   0.000     19.88353    21.06437
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      6424        6424           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation
(est3 stored)

. 
. esttab using "$cdpath/Figures/TableA11.tex", title("Estimated  Effect of Quarter
>  Until Election on" "Event-Fundraising Proportions") mtitles("All Candidates" "I
> ncumbent Candidates" "Non-Incumbent Candidates")  se(%7.2f) label nogap  compres
> s star(* 0.10 ** 0.05 *** 0.01) replace unstack b(2) 
(output written to /Users/sebastian.thieme/Downloads/JOPReplication/Figures/TableA
> 11.tex)

. 
. est clear 

. 
. reghdfe pfr100  i.quatill_ge_date_f2   if quatill_ge_date>=0 &quatill_ge_date<=7
>  ,absorb(candFEs=candidate2office2yearstate_g) cluster(office2yearstate )
(dropped 1208 singleton observations)
(MWFE estimator converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     41,965
Absorbing 1 HDFE group                            F(   7,   4649) =     129.54
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5618
                                                  Adj R-squared   =     0.4252
                                                  Within R-sq.    =     0.0321
Number of clusters (office2yearstate) =      4,650Root MSE        =    28.2836

                      (Std. err. adjusted for 4,650 clusters in office2yearstate)
---------------------------------------------------------------------------------
                |               Robust
         pfr100 | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------+----------------------------------------------------------------
quatill_ge_da~2 |
             2  |   7.459445   .4106374    18.17   0.000     6.654401    8.264489
             3  |   7.276748   .4258271    17.09   0.000     6.441925    8.111571
             4  |   2.730026   .4491757     6.08   0.000     1.849428    3.610623
             5  |   12.87203    .626655    20.54   0.000     11.64349    14.10057
             6  |    13.4562   .7672939    17.54   0.000     11.95194    14.96046
             7  |    18.0859   .8806067    20.54   0.000      16.3595    19.81231
             8  |   7.944383    1.05885     7.50   0.000     5.868534    10.02023
                |
          _cons |   20.70453   .2908607    71.18   0.000      20.1343    21.27475
---------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------------+
                  Absorbed FE | Categories  - Redundant  = Num. Coefs |
------------------------------+---------------------------------------|
 candidate2office2yearstate_g |      9967        9967           0    *|
----------------------------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

. sum candFEs

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
     candFEs |     41,965    7.71e-16    27.03147  -36.47558   77.93046

. 
. capture log close
